<?php
class ome_finder_reship{
    var $detail_basic = "退货单详情";

    function detail_basic($reship_id){
        $render = app::get('ome')->render();
        $oReship = &app::get('ome')->model('reship');
        $orders = &app::get('ome')->model('orders');
        $oDesktop = &app::get('desktop')->model('users');
        $oDelivery = &app::get('ome')->model('delivery');
        
        $detail = $oReship->dump($reship_id);
        $orders_detail = $orders->dump($detail['order_id'], 'order_bn');
        $detail['order_bn'] = $orders_detail['order_bn'];
        $desktop_detail = $oDesktop->dump(array('user_id'=>$detail['op_id']), 'name');
        $detail['op_name'] = $desktop_detail['name'];
        $delivery_detail = $oDelivery->dump(array('delivery_id'=>$detail['delivery']), 'delivery');
        $detail['delivery'] = $delivery_detail['delivery'];
           
        $render->pagedata['detail'] = $detail;
       
        $render->pagedata['items'] = $oReship->getItemList($reship_id);
        return $render->fetch('admin/reship/detail.html');
        
    }

}
?>